/*
 * uart_it.h
 *
 *  Created on: May 26, 2025
 *      Author: lsy18
 */

#ifndef COMMUNICATE_UART_COM_UART_IT_H_
#define COMMUNICATE_UART_COM_UART_IT_H_

#include <stdint.h>

#include "usart.h"

typedef struct
{
	uint8_t uart_buff[256];
	uint8_t uart_bit_buff;
	uint8_t buff_num;
	uint8_t receive_num;
	uint8_t uart_finish_signal;
}UART_IT_STRUCT;

void uart_data_translocate(uint8_t *uart_buff , uint8_t star_location, uint8_t buff_num);

void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart);

extern UART_IT_STRUCT slave_uart,pos_uart;

#endif /* COMMUNICATE_UART_COM_UART_IT_H_ */
